package com.htj.bookreview.mapper;

import com.htj.bookreview.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper

public interface UserMapper {
    //登录时信息核对
    User getInfo(String name, String password);

    //根据ID查询用户信息
    User selectUserById(String id);

    //插入新的用户
    int insertUser(User user);

    //删除用户
    int deleteUser(String id);

    //修改用户
    int updateUser(User user);

    //查询所有用户
    List<User> getAllUser();
}

